package com.gzz.orchid.common.webmvc.support.limiter.access;

import java.lang.annotation.*;

/**
 * @author higmd
 * @AccessLimiter(key = "Limiter:test",limitNum = 3,seconds = 1)
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AccessLimiter {
    String key();

    // 限制时间
    int seconds() default 1;

    // 限制次数
    int limitNum() default 2;
}
